// app/controller/home.js
const Controller = require('../core/base_controller');

class GetMessageController extends Controller {
  async getMessage() {
    const results = await this.app.mysql.select('massage');
    
    this.ctx.body = {
      meta:{
        msg:"获取成功",
        status:200,
      },
      data:{
        list:results,
      }
    };
  }
  
}

module.exports = GetMessageController;